<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Cache-control" content="no-cache,no-store,must-revalidate,max-age=3" />
	<meta http-equiv="Expires" content="Mon, 26 Jul 1997 05:00:00 GMT" />
	<meta name="author" content="dsaiyin.com" />
	<meta name="license" content="LGPL" />
	<title>裕鸟国际货运</title>
    <include file="Public:css_js"/>
	
</head>
<body>

<include file="Public:head"/>

<div class="box">
<section class="cont">
<div class="cx fl mr60">

    <h2><span style="border-bottom-color: #0a0;">运单查询</span></h2>
    <input type="text" name="sn" id="sn" value="" class="inputText" style="width: 250px;">
    <a id="start_search" class="am-button-innerNav button-login fr" style="background:#0a0;"  href="javascript:;">开始查询</a>
    <br/>
    <a id="/Order" class="am-button-innerNav  button-login1" style="background:#0a0;margin: 20px 0px"  href="/order">网上下单</a>

</div>
<div class="cx fl">
    <h2><span style="border-bottom-color: #0a0;">运费计算器</span></h2>

    <form action="/Tariff/index" method="post">
        <p>
            国家：
            <select id="" class="inputText" name="country_id" style="width: 300px;">
                <foreach name="state" item="value">
                    <option value="<!--{$value['id']}-->"><!--{$value['ename']}-->/<!--{$value['cname']}--></option>
                </foreach>
            </select>
        </p>
        <p>发货渠道：
            <select id="channel_id" class="inputText" name="channel_id" style="width: 100px; margin-right: 30px">
                <option value="">选择渠道</option>
                <foreach name="channel" item="val">
                    <option value="<!--{$val['id']}-->"><!--{$val['company']}--></option>
                </foreach>
            </select>
        </p>
        <p style="line-height: 40px;margin-bottom: 10px">
            重量：<input id="weight" type="number" name="weight" min="0.1" step="0.01"  value="" class="inputText clearFix" placeholder="重量(kg)" style="width: 60px;margin-right:5px;height: 20px" required="请输数字" oninvalid="setCustomValidity('请输数字');" oninput="setCustomValidity('')">kg</p>
        <input id="count" type="submit" class="button-login1" style="background:#0a0;" value="计算运费">
    </form>
</div>
<div class="cx fr">
<h2><span style="border-bottom-color: #0a0;">帮助中心</span><span  style="border-bottom-color: #0a0;" class="fr f12 mt10 blue fw"><a href="/help" style="color:#0a0;">更多>></a></span></h2>

</div>
</section>
<div class="clearFix"></div>
<section class="link">
    <h2><span style="border-bottom-color: #00aa00">合作伙伴</span></h2>
    <ul class="hezuo">
		<li><a href="http://www.kuaidi100.com/" target="_blank" title="快递100"><img src="__PUBLIC__/Public/images/auto_1095.gif" width="143" height="55"></a></li>
    	<li><a href="http://www.dhl.com/" target="_blank" title="DHL"><img src="__PUBLIC__/Public/images/auto_1049.gif" width="143" height="55"></a></li>
    	<li><a href="http://www.fedex.com/" target="_blank" title="FedEx"><img src="__PUBLIC__/Public/images/auto_1048.gif" width="143" height="55"></a></li>
    	<li><a href="https://www.usps.com/" target="_blank" title="UPS"><img src="__PUBLIC__/Public/images/auto_1047.jpg" width="143" height="55"></a></li>
    	<li><a href="http://www.ems.com.cn/" target="_blank" title="EMS"><img src="__PUBLIC__/Public/images/auto_1052.jpg" width="143" height="55"></a></li>
    	
    </ul>
</section>
</div>
<div class="clearFix"></div>

<include file="Public:foot"/>

<script type="text/javascript">
    $("#start_search").click(function(){
        var sn=$("#sn").val();
        if(!sn){
            $.dialog.alert("请填写运单号查询");
            return false;
        }else{
            document.location.href="/Waybill/select/wid/"+sn;
        }
        var arr = sn.split('\n');
        if(arr.length>1){
            $.dialog.alert("一次最多只能查询1个运单号");
            return false;
        }
    });
    $("#count").click(function(){

        var weight = $("#weight").val();
        if(!weight){
            $.dialog.alert("请填写包裹重量");
            return false;
        }
        if(isNaN(weight)){
            $.dialog.alert("包裹重量只能是数字");
            $("#weight").focus();
            return false
        }
        var length = $("#length").val();
        if(!length){
            length=0;
        }
        var width = $("#width").val();
        if(!width){
            width=0;
        }
        var height = $("#height").val();
        if(!height){
            height=0;
        }
        var volume = (length*width*height)/5000*2.2;
        /*var url = get_url('index','count','channel='+channel+'&weight='+weight+'&volume='+volume);
        $.dialog.open(url,{
            'title':'计算运费',
            'width':'50%',
            'height':'50%',
            'lock':true
        });
        return false;*/
    });
</script>

</body>
</html>